﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Estsh.Core.Base;
using Estsh.Core.Wms.IRepositories;
using Estsh.Core.Wms.IServices;
using Estsh.Core.Model.Result;
using Estsh.Core.Services;
using Estsh.Core.Repositories;
using Estsh.Core.Models;
using Newtonsoft.Json.Linq;
using Estsh.Core.Model.Extend.IFModels;

namespace Estsh.Core.Wms.Services
{
    public class QcService : BaseService<BaseEntity>, IQcService
    {
        private readonly IQcRepository repository;
        public QcService(IQcRepository _repository) : base(_repository)
        {
            repository = _repository;
        }

        public List<WmsQcDetail> GetQCListing(string cartonno)
        {
            return repository.GetQCListing(cartonno);
        }

        public List<WmsQcShowList> GetShowList(string receving, string loginId)
        {
            return repository.GetShowList(receving, loginId);
        }

        public int GetQcRusult(string receving, string loginId)
        {
            return repository.GetQcRusult(receving, loginId);
        }

        public string CheckQc(string receving, string loginId, string remark,string qcresult)
        {
            return repository.CheckQc(receving, loginId, remark,qcresult);
        }

        public string CheckCartonStatus(string cartonNo, string loginId, string orderNo)
        {
            return repository.CheckCartonStatus(cartonNo, loginId, orderNo);
        }

        public string CheckQcCarton(string QcCartonNo, string MAXmessage, string loginId, string Remark, string receving)
        {
            return repository.CheckQcCarton(QcCartonNo, MAXmessage, loginId, Remark, receving);
        }

        public SetObjectDetail CheckNcQty(string cartonNo, string loginId, string orderNo,string ncQty)
        {
            return repository.CheckNcQty(cartonNo, loginId, orderNo, ncQty);
        }

        
    }
}
